package com.hmall.zookeeper.config;

import com.hmall.spring.CustomScanner;
import com.hmall.spring.CustomScannerRegistrar;
import com.hmall.spring.SpringBeanPostProcessor;
import com.hmall.transport.netty.service.NettyRpcServer;
import com.hmall.zookeeper.utils.CuratorUtils;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class ZookeeperProperties {

    @Value("${zookeeper.address:127.0.0.1:2181}")
    private String address;
    @Value("zookeeper.loadBalance")
    private String loadBalance;

//    @Bean
//    public ZookeeperProperties zookeeperProperties() {
//        ZookeeperProperties zookeeperProperties = new ZookeeperProperties();
//        zookeeperProperties.setAddress(address);
//        return zookeeperProperties;
//    }
//
//    @Bean
//    public SpringBeanPostProcessor springBeanPostProcessor() {
//        return new SpringBeanPostProcessor();
//    }
//
//    @Bean
//    public CustomScannerRegistrar customScannerRegistrar() {
//        return new CustomScannerRegistrar();
//    }
//
//    @Bean
//    public CuratorUtils curatorUtils() {
//        return new CuratorUtils();
//    }
//
//    @Bean
//    public NettyRpcServer nettyRpcServer() {
//        return new NettyRpcServer();
//    }
}
